//
//  LcbButtonImageView.m
//  lcb
//
//  Created by lcb on 16/6/14.
//  Copyright © 2016年 lcb. All rights reserved.
//

#import "LcbButtonImageView.h"
#import "UIButton+WebCache.h"

@implementation UIButton (LcbButtonImageView)

- (void)imageWithUrlStr:(NSString *)urlStr forState:(UIControlState)state placeholderImage:(UIImage *)placeholder
{
    NSURL *url = [NSURL URLWithString:urlStr];
    if (url) {
        [self sd_setImageWithURL:url forState:state placeholderImage:placeholder];
    }
}
@end
